package com.meichis.mcsappframework.executor;

import android.os.Handler;
import android.os.Looper;

public abstract class MCSRunnable implements Runnable {

    @Override
    public void run() {
        doBackground();
        new Handler(Looper.getMainLooper()).post(new Runnable() {
            @Override
            public void run() {
                completeOnMain();
            }
        });
    }

    protected abstract void doBackground();

    protected abstract void completeOnMain();
}
